package com.easemob.chat.core;

import java.text.ParseException;
import java.util.Date;
import org.jivesoftware.smack.packet.PacketExtension;
import org.jivesoftware.smack.provider.PacketExtensionProvider;
import org.jivesoftware.smack.util.StringUtils;
import org.xmlpull.v1.XmlPullParser;

public class q
  implements PacketExtensionProvider
{
  public PacketExtension parseExtension(XmlPullParser paramXmlPullParser)
    throws Exception
  {
    String str = paramXmlPullParser.getAttributeValue("", "stamp");
    Date localDate = null;
    try
    {
      localDate = StringUtils.parseDate(str);
    }
    catch (ParseException localParseException)
    {
      if (localDate == null)
        localDate = new Date(0L);
    }
    p localp = new p(localDate);
    return localp;
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.chat.core.q
 * JD-Core Version:    0.6.1
 */